package com.testfileupload.uploadimg.design.combination.definetouming;

import java.util.ArrayList;

public abstract class Componet {
    public void doSomething(){
        //业务逻辑
    }
    //增加一个叶子
    public abstract void add(Componet componet) ;

    //删除
    public abstract void delete(Componet componet);

    //获取
    public abstract ArrayList<Componet> getChild() ;
}
